import request from '@/utils/request'

// 查询VIEW列表
export function listProductPowerReport(query) {
  return request({
    url: '/carbonReport/productPowerReport/list',
    method: 'get',
    params: query
  })
}

// 查询VIEW详细
export function getProductPowerReport(planId) {
  return request({
    url: '/carbonReport/productPowerReport/' + planId,
    method: 'get'
  })
}

// 新增VIEW
export function addProductPowerReport(data) {
  return request({
    url: '/carbonReport/productPowerReport',
    method: 'post',
    data: data
  })
}

// 修改VIEW
export function updateProductPowerReport(data) {
  return request({
    url: '/carbonReport/productPowerReport',
    method: 'put',
    data: data
  })
}

// 删除VIEW
export function delProductPowerReport(planId) {
  return request({
    url: '/carbonReport/productPowerReport/' + planId,
    method: 'delete'
  })
}

// 导出VIEW
export function exportProductPowerReport(query) {
  return request({
    url: '/carbonReport/productPowerReport/export',
    method: 'get',
    params: query
  })
}